home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
c't freeware shareware 1999 February
/
CT_SW9902.ISO
/
mac
/
software
/
wissen
/
daten
/
gnuplot.hqx
/
gnuplot.2.0b4
/
Interapplication
/
Python console
/
gnucon README
next >
Wrap
Text File
|
1997-06-27
|
2KB
|
32 lines
Instructions for using gnucon.py as a console for Macintosh gnuplot
1) You must first install the Macintosh Python distribution on your system if
its not already installed. The latest binaries and source can be downloaded from
ftp://ftp.cwi.nl/pub/jack/python/mac/. There are versions for both PPC
and 68K machines.
2) Install the gnuplot_Suites.py file somewhere in your Python search path.
(See instructions that come with Python on how to set your path.) The
gnuplot_Suites.py file is based on the code that is generated by the
gensuitemodule.py script. It has been modified slightly from the code that was
generated by gensuitemodule. For UserLand Frontier users, the gnuplot_Suites.py
module is the Python equivalent of a glue table in Frontier.
3) Drag and drop the gnucon.py file on the Python application. The script will
launch gnuplot if it's not already running and bring it to the front. You must
then bring Python to the front so that the console window can be used. (There is
currently no way to launch an application in the background from Python.)
4) You should now have a functioning gnuplot console. Whatever you enter into
the Python console window will be passed to gnuplot and executed. Typing 'quit'
or 'exit' in the console will quit both gnuplot and Python.
If you are using either the PPC or CFM68K version of Python you can drop the
gnuplot.py file on the mkapplet icon in the Python folder to generate a
double-clickable version of gnucon.
To see the details of how this works, check out the Python-OSA tutorial at
http://www.cwi.nl/~jack/macpython/applescript.html.